package cn.factorybox.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-04 11:32
 */
public class DeviceData implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;                          // 唯一id
    private String fSerialNumber;               //设备编号
    private Double fTemperature;                //空气温度
    private Double fHumidity;                   //空气湿度
    private Double fCarbonDioxide;              //二氧化碳
    private Double fTvoc;                       //tvoc
    private Double fExhaust;                    //气体排放量
    private Double fPm;                     //pm2.5
    private Double fPressure;               //室内压强

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date fCreateTime;      //创建时间

    private String result;      // 数据状态

    private Integer type;  //环境id

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getfSerialNumber() {
        return fSerialNumber;
    }

    public void setfSerialNumber(String fSerialNumber) {
        this.fSerialNumber = fSerialNumber;
    }

    public Double getfTemperature() {
        return fTemperature;
    }

    public void setfTemperature(Double fTemperature) {
        this.fTemperature = fTemperature;
    }

    public Double getfHumidity() {
        return fHumidity;
    }

    public void setfHumidity(Double fHumidity) {
        this.fHumidity = fHumidity;
    }

    public Double getfCarbonDioxide() {
        return fCarbonDioxide;
    }

    public void setfCarbonDioxide(Double fCarbonDioxide) {
        this.fCarbonDioxide = fCarbonDioxide;
    }

    public Double getfTvoc() {
        return fTvoc;
    }

    public void setfTvoc(Double fTvoc) {
        this.fTvoc = fTvoc;
    }

    public Double getfExhaust() {
        return fExhaust;
    }

    public void setfExhaust(Double fExhaust) {
        this.fExhaust = fExhaust;
    }

    public Double getfPm() {
        return fPm;
    }

    public void setfPm(Double fPm) {
        this.fPm = fPm;
    }

    public Double getfPressure() {
        return fPressure;
    }

    public void setfPressure(Double fPressure) {
        this.fPressure = fPressure;
    }

    public Date getfCreateTime() {
        return fCreateTime;
    }

    public void setfCreateTime(Date fCreateTime) {
        this.fCreateTime = fCreateTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "DeviceData{" +
                "id='" + id + '\'' +
                ", fSerialNumber='" + fSerialNumber + '\'' +
                ", fTemperature=" + fTemperature +
                ", fHumidity=" + fHumidity +
                ", fCarbonDioxide=" + fCarbonDioxide +
                ", fTvoc=" + fTvoc +
                ", fExhaust=" + fExhaust +
                ", fPM=" + fPm +
                ", fPressure=" + fPressure +
                ", fCreateTime=" + fCreateTime +
                '}';
    }
}
